import request from '@/utils/request'

// 查询参赛者报名列表
export function listParticipants(query) {
  return request({
    url: '/ss/participants/list',
    method: 'get',
    params: query
  })
}

// 查询参赛者报名详细
export function getParticipants(ssParticipantsId) {
  return request({
    url: '/ss/participants/' + ssParticipantsId,
    method: 'get'
  })
}

// 新增参赛者报名
export function addParticipants(data) {
  return request({
    url: '/ss/participants',
    method: 'post',
    data: data
  })
}

// 修改参赛者报名
export function updateParticipants(data) {
  return request({
    url: '/ss/participants',
    method: 'put',
    data: data
  })
}

// 删除参赛者报名
export function delParticipants(ssParticipantsId) {
  return request({
    url: '/ss/participants/' + ssParticipantsId,
    method: 'delete'
  })
}
